summaryrefslogtreecommitdiffstats
path: root/src/android/app/src/main/res/layout/list_item_setting_switch.xml
diff options
context:
space:
mode:
Diffstat (limited to 'src/android/app/src/main/res/layout/list_item_setting_switch.xml')
-rw-r--r--src/android/app/src/main/res/layout/list_item_setting_switch.xml19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/android/app/src/main/res/layout/list_item_setting_switch.xml b/src/android/app/src/main/res/layout/list_item_setting_switch.xml
index dbed0948c..599d845ad 100644
--- a/src/android/app/src/main/res/layout/list_item_setting_switch.xml
+++ b/src/android/app/src/main/res/layout/list_item_setting_switch.xml
@@ -3,35 +3,37 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
android:background="?android:attr/selectableItemBackground"
android:clickable="true"
android:focusable="true"
- android:minHeight="72dp">
+ android:minHeight="72dp"
+ android:paddingStart="@dimen/spacing_large"
+ android:paddingEnd="24dp"
+ android:paddingVertical="@dimen/spacing_large">
<com.google.android.material.materialswitch.MaterialSwitch
android:id="@+id/switch_widget"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
- android:layout_centerVertical="true"
- android:layout_marginEnd="24dp" />
+ android:layout_centerVertical="true" />
- <TextView
+ <com.google.android.material.textview.MaterialTextView
+ style="@style/TextAppearance.Material3.BodySmall"
android:id="@+id/text_setting_description"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_alignStart="@+id/text_setting_name"
android:layout_below="@+id/text_setting_name"
- android:layout_marginBottom="@dimen/spacing_large"
android:layout_marginEnd="@dimen/spacing_large"
- android:layout_marginStart="@dimen/spacing_large"
android:layout_marginTop="@dimen/spacing_small"
android:layout_toStartOf="@+id/switch_widget"
android:textAlignment="viewStart"
tools:text="@string/frame_limit_enable_description" />
- <TextView
+ <com.google.android.material.textview.MaterialTextView
style="@style/TextAppearance.Material3.HeadlineMedium"
android:id="@+id/text_setting_name"
android:layout_width="0dp"
@@ -39,11 +41,10 @@
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:layout_marginEnd="@dimen/spacing_large"
- android:layout_marginStart="@dimen/spacing_large"
- android:layout_marginTop="@dimen/spacing_large"
android:layout_toStartOf="@+id/switch_widget"
android:textSize="16sp"
android:textAlignment="viewStart"
+ app:lineHeight="28dp"
tools:text="@string/frame_limit_enable" />
</RelativeLayout>